package com.zuoye.day20;

public class Person {
    private String perName;
    private int perAge;
    private String gender;

    public Person(String perName, int perAge, String gender) {
        this.perName = perName;
        this.perAge = perAge;
        this.gender = gender;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }

    public int getPerAge() {
        return perAge;
    }

    public void setPerAge(int perAge) {
        this.perAge = perAge;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Person{" +
                "perName='" + perName + '\'' +
                ", perAge=" + perAge +
                ", gender='" + gender + '\'' +
                '}';
    }
}
